package com.itkaien.anno.datasourceDemomybatis;

import com.itkaien.anno.PersonInterface;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Person implements PersonInterface {
    private String name="zhangsan";

    @Override
    public void eat() {
        System.out.println("eat");
    }

    @Override
    public void sleep() {

    }

    @Override
    public void play() {

    }
}
